<form action="#" class="form-horizontal">
    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传（单选）</label>

            <div class="col-md-8">
                <div ed-uploader class="ng-uploader" ng-model="file"></div>
                <!-- 单选的绑定需要自己去写-->
                <span>{{file}}</span>
            </div>
        </div>
    </div>

    <hr/>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传（多选）</label>

            <div class="col-md-8">
                <!-- 加上list class才会出现列表-->
                <div ed-uploader class="ng-uploader list" ng-model="files" data-options="multiple: true"></div>
            </div>
        </div>
    </div>

    <hr/>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传，自定义按钮名称</label>

            <div class="col-md-8">
                <div ed-uploader class="ng-uploader list" ng-model="user.files"
                     data-options="multiple: true, text: '自定义按钮名称'"></div>
            </div>
        </div>
    </div>

    <hr/>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传，自定义上传目录{{dddd}}</label>

            <div class="col-md-8">
                <div ed-uploader class="ng-uploader list" ng-model="dddd" ed-upload-dir="dddd"></div>
            </div>
        </div>
    </div>

    <hr/>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传，图片</label>

            <div class="col-md-8">
                <div ed-uploader class="ng-uploader list" name="f" ng-model="f" data-options="accept: 'image/png, image/jpeg, image/gif'"></div>
            </div>
        </div>
    </div>

    <hr/>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传，excel</label>

            <div class="col-md-8">
                <div ed-uploader class="ng-uploader list" name="f1" ng-model="f1" data-options="accept: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'"></div>
            </div>
        </div>
    </div>

    <hr/>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label">文件上传，大小控制（kb）</label>

            <div class="col-md-8">
                <div ed-uploader class="ng-uploader list" name="f2" ng-model="f2" data-options="maxSize: 10"></div>
            </div>
        </div>
    </div>

    <hr/>

</form>